/* TOGGLE SWITCH v1.0.8 */

.switch-toggle {
    height: 26px !important;
    margin: 10px 0;
}


/* Standalone Themes */


/* Candy Theme
* Based on the "Sort Switches / Toggles (PSD)" by Ormal Clarck
* http://www.premiumpixels.com/freebies/sort-switches-toggles-psd/
*/

.switch-candy {
    background-color: #FFF !important;
    text-shadow: none;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18) inset, 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-left: 10px;
    border: 1px solid #ccc;
    min-width: 200px;
    max-width: 505px !important;
}

.switch-candy .switch-5 {
    width: 100%;
}

.switch-candy label {
    color: #333 !important;
}

.switch-candy input:checked + label {
    color: #fff !important;
    text-shadow: none;
}

.switch-candy a {
    height: 100% !important;
    background-color: #999 !important;
    border-color: #6B6B6B;
}

.switch-candy label {
    cursor: pointer;
}

.panel-toolbar .format-item .switch-candy a {
    opacity: 1;
}


/*.chrome .switch-toggle.switch-5 label, .switch-toggle.switch-5 a {
  width: 20%;
}*/

.switch-toggle input + label,
.switch-toggle.switch-5 label,
.switch-toggle.switch-5 a {
    width: 100px !important;
}

.switch-btn-disabled {
    background-color: transparent !important;
    color: #CCC !important;
    cursor: not-allowed !important;
}

.switch-candy label.switch-btn-disabled {
    color: #CCC !important;
}


/* Hides default checkbox */

.switch-toggle [type="radio"]:checked + label,
.switch-toggle [type="radio"]:not(:checked) + label {
    padding: 3px 5px !important;
}

.switch-toggle [type="radio"]:checked + label:after,
.switch-toggle [type="radio"]:not(:checked) + label:before,
.switch-toggle [type="radio"]:checked + label:before {
    display: none;
}

.switch-toggle [type="radio"]:checked + label,
.switch-toggle [type="radio"]:not(:checked) + label {
    top: 0 !important;
}

.switch-toggle [type="radio"]:not(:checked) + label,
.switch-toggle [type="radio"]:checked + label {
    width: 100px !important;
    outline: 0;
}


/* BUTTON TOGGLE */

.toggle-slider-header {
    display: table-cell;
    vertical-align: middle;
    height: 30px;
    padding-right: 10px;
}

.toggle-slider-header label {
    margin-bottom: 0 !important;
}

.toggle-slider {
    display: table-cell;
    vertical-align: middle;
    height: 30px;
}

.switch-wrapper {
    display: table;
    margin-bottom: 10px;
}

.input .switch-candy input:checked + label,
.input .switch-toggle input + label,
.input .switch-toggle.switch-5 label,
.input .switch-toggle.switch-5 a {
    background-color: transparent !important;
    border: transparent;
    outline: 0 !important;
}

.input .toggle-switch {
    display: inline-block;
}

.input .toggle-switch .switch-candy {
    margin: 0;
}

.switch-toggle input + label {
    padding: 3px 5px !important;
    text-align: center !important;
}


/*Switch toggle Media query*/

@media (max-width:760px) {
    .switch-5 a {
        width: 20% !important;
    }
    .switch-toggle.switch-5 label,
    .switch-toggle.switch-5 a {
        width: 20% !important;
    }
}

@media (max-width:399px) {
    .switch-toggle.switch-5 label,
    .switch-toggle.switch-5 a {
        width: 20% !important;
    }
}


/*RTL*/

.rtl .toggle-responsive {
    direction: rtl;
}

.rtl .switch-candy {
    margin-left: 0;
}

.rtl .switch-toggle a {
    left: auto !important;
    right: 0;
}

.rtl .switch-toggle input:last-of-type:checked ~ a {
    right: 50%;
    left: auto !important;
}

.rtl .switch-toggle.switch-3 label,
.switch-toggle.switch-3 a {
    width: 33.3333333333%;
}

.rtl .switch-toggle.switch-3 input:checked:nth-of-type(2) ~ a {
    right: 33.3333333333%;
    left: auto !important;
}

.rtl .switch-toggle.switch-3 input:checked:last-of-type ~ a {
    right: 66.6666666667%;
    left: auto !important;
}

.rtl .switch-toggle.switch-4 label,
.switch-toggle.switch-4 a {
    width: 25%;
}

.rtl .switch-toggle.switch-4 input:checked:nth-of-type(2) ~ a {
    right: 25%;
    left: auto !important;
}

.rtl .switch-toggle.switch-4 input:checked:nth-of-type(3) ~ a {
    right: 50%;
    left: auto !important;
}

.rtl .switch-toggle.switch-4 input:checked:last-of-type ~ a {
    right: 75%;
    left: auto !important;
}

.rtl .switch-toggle.switch-5 label,
.switch-toggle.switch-5 a {
    width: 20%;
}

.rtl .switch-toggle.switch-5 input:checked:nth-of-type(2) ~ a {
    right: 20%;
    left: auto !important;
}

.rtl .switch-toggle.switch-5 input:checked:nth-of-type(3) ~ a {
    right: 40%;
    left: auto !important;
}

.rtl .switch-toggle.switch-5 input:checked:nth-of-type(4) ~ a {
    right: 60%;
    left: auto !important;
}

.rtl .switch-toggle.switch-5 input:checked:last-of-type ~ a {
    right: 80%;
    left: auto !important;
}

.rtl .toggle-slider-header {
    padding-left: 10px;
    padding-right: 0;
}

.rtl .toggle-switch label {
    margin: 0 !important;
    text-align: center !important;
}

/* Checkbox RTL */

.rtl .switch-toggle [type="radio"]:checked + label,
.rtl .switch-toggle [type="radio"]:not(:checked) + label {
    padding-right: 5px !important;
}

@media only screen and (max-width: 480px) {
    .switch-candy {
        margin-left: 0;
    }
    .rtl .switch-candy {
        margin-right: 0;
    }
}
